#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:configparser_module.py
@time:2021/08/19
"""
import configparser


def test01():
    ...
    conf = configparser.ConfigParser()
    conf.read('./nginx.ini')
    # print(conf.sections())
    # print(conf['admin'].getint('port'))
    # print(conf.get('test', 'port'))
    print(conf.getboolean('admin', 'is_log'))

if __name__ == '__main__':
    pass
    test01()
